﻿//
window.operateEvents = {
    'click .delJZHY': function (e, value, row, index) {
        MyDialog.confirm('你确认要删除此条记录吗?', function () {
            $.post("../SpeList/DLLAjaxHandler.ashx", { Action: "delJZHYinfo", id: row.id },
                function (data) {
                    if (data == "success") {
                        toastr.success("操作成功");
                    }
                })
        })
    }
};
var option = {};
option.columns = [


{
    field: 'id',
    title: 'id',
}, {
    sortable: true,
    field: 'UserName',
    title: '用户名'
}, {
    field: 'Desp',
    title: '机制部门',
}, {
    field: 'UpUserName',
    title: '上级机制会员',
}, {
    field: '',
    title: '操作',
    formatter: function (value, row) {
        var html = "";
        html = '<a href="#" style="margin-left:10px" class="delJZHY" >删除该会员的机制信息</a>';
        return html;
    },
    events: operateEvents
}

];

$(document).ready(function () {
    $(".addForm,.EditForm,.DelForm").remove();
});
